package com.baby.kim.service.impl;

import com.baby.kim.dao.IUserDao;
import com.baby.kim.model.User;
import com.baby.kim.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Xin.Jin7
 * @create 2018-04-24 16:55
 **/
@Service("userService")
public class IUserServiceImpl implements IUserService {

    @Autowired
    public IUserDao udao;

    @Override
    public User getUserById(int id) {
        return udao.selectByPrimaryKey(id);
    }
}
